package kr.hkit.powerjava.chapter22.collection;

import java.util.*;

import kr.hkit.powerjava.chapter23.*;

public class MapTest {
	public static void main(String[] args) {
		Map<Integer, Student> map = new HashMap<>();
		map.put(1,new Student(1,"김태희", 80, 80, 80));
		map.put(2,new Student(2,"김이민", 90, 90, 90));
		
		map.remove(1);
		System.out.println(map);
		
		for(Map.Entry<Integer, Student>s : map.entrySet()){
			int key = s.getKey();
			Student std = s.getValue();
			
			System.out.println("Key : "  + key + "value" + std);
		}
	}
}
